package com.example.lp.lpuicore.views.ui.Fragnemt;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


/**
 * Author by lp,on 2021/7/1/001,14:20.
 */
public abstract class BaseFragment extends Fragment {
    private  final String TAG = getTAG();
    private View view;

    abstract String getTitle();
    abstract String getTAG();

    abstract void onLoad(View view);

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(getFragmentLayoutId(), container, false);
        onLoad(view);
        return view;
    }

    abstract int getFragmentLayoutId();

    protected View getFragmentView() {
        return view;
    }



}
